home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1998 September / Macworld (1998-09).dmg / Shareware World / Info / For Developers / Script Tools 1.3.6 / Examples / Shutdown Example < prev   
Text File  |  1993-07-08  |  277b  |  7 lines

  1. set result to display dialog "Are you sure you want to shutdown?" ¬
  2.     buttons {"Shutdown", "Restart", "Cancel"} ¬
  3.     default button "Cancel"
  4. if button returned of result = "Shutdown" then ¬
  5.     shutdown without rest
  6. if button returned of result = "Restart" then ¬
  7.     shutdown with rest